﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true"
    CodeFile="EjecucionPresupuestal.aspx.cs" Inherits="EjecucionPresupuestal" %>

<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dxcp" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register TagPrefix="cc1" Namespace="UsrControls" Assembly="UsrControls" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
    
     function ShowHideCustomizationWindow() 
    {
        if(ctl00_ContentPlaceHolder1_ASPxGridViewDemo.IsCustomizationWindowVisible())
            ctl00_ContentPlaceHolder1_ASPxGridViewDemo.HideCustomizationWindow();
        else ctl00_ContentPlaceHolder1_ASPxGridViewDemo.ShowCustomizationWindow();        
            UpdateCustomizationWindowValue();
            
    }
    
    function UpdateCustomizationWindowValue() 
    {
    
        var element = document.getElementById("btnCustWindow");
        if(element == null) return;
        element.value = (ctl00_ContentPlaceHolder1_ASPxGridViewDemo.IsCustomizationWindowVisible() ? "Esconder" : "Mostrar") + " Ventana Manual";
    }

    
    function confirmEdit()
    {
    var counter = ctl00_ContentPlaceHolder1_ASPxGridViewDemo.GetSelectedRowCount();
    if (counter > 1)
        {
        counter = 0;
            alert("Debe seleccionar un solo registro");
            return(false);
        }
        else if (counter == 1)
        {
        counter = 0;
            return(true);
        }
        else if (counter == 0)
        {
        counter = 0;
        alert("Debe seleccionar al  menos un registro");
            return(false);
        }
    }
	function actualizarTotales()
	{
	  Anthem_InvokePageMethod(
            'CargarTotales',
            [],
            function(result) {}
        );	    
	}
    </script>

    <h1 class="presupuesto">
        Plan de Accion</h1>
    <anthem:Label ID="lblMensaje" runat="server"></anthem:Label>
    <anthem:Panel ID="pnlGridPlanAccion" AutoUpdateAfterCallBack="true" runat="server">
        <div class="borde">
            <table width="100%" border="0" class="content-box">
                <tr>
                    <td>
                        &nbsp;Seleccione Vigencia</td>
                    <td>
                        <anthem:DropDownList ID="ddlAnosVigencia" runat="server" AutoCallBack="True" OnSelectedIndexChanged="ddlAnosVigencia_SelectedIndexChanged"
                            AutoUpdateAfterCallBack="True">
                        </anthem:DropDownList></td>
                    <td>
                        Entidad</td>
                    <td>
                        <anthem:DropDownList ID="ddlEntidad" runat="server" AutoCallBack="True" OnSelectedIndexChanged="ddlEntidad_SelectedIndexChanged"
                            AutoUpdateAfterCallBack="True">
                        </anthem:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        Dependencia</td>
                    <td>
                        <anthem:DropDownList ID="ddlDependencias" runat="server" AutoCallBack="True" OnSelectedIndexChanged="ddlDependencias_SelectedIndexChanged1"
                            AutoUpdateAfterCallBack="True">
                        </anthem:DropDownList></td>
                    <td>
                        Grupo</td>
                    <td>
                        <anthem:DropDownList ID="ddlGrupos" runat="server" AutoCallBack="True" OnSelectedIndexChanged="ddlGrupos_SelectedIndexChanged1"
                            AutoUpdateAfterCallBack="True">
                        </anthem:DropDownList></td>
                </tr>
            </table>
        </div>
        <table width="100%" class="content-box1 bt-space15">
            <tr>
                <td>
                    <h3>
                        Convenciones</h3>
                </td>
                <td>
                    <anthem:Image ID="Image10" runat="server" ImageUrl="~/Imagenes/ball_red_16.png" CssClass="fl-space" />0%
                    a 33%</td>
                <td>
                    <anthem:Image ID="Image5" runat="server" ImageUrl="~/Imagenes/ball_yellow_16.png"
                        CssClass="fl-space" />33% a 66%</td>
                <td>
                    <anthem:Image ID="Image4" runat="server" ImageUrl="~/Imagenes/ball_green_16.png"
                        CssClass="fl-space" />66% a 100%</td>
                <td class="angulo">
                    &nbsp;</td>
                <td class="gris right">
                    <input id="btnCustWindow" type="button" value="Mostrar Ventana Manual" onclick="ShowHideCustomizationWindow();"
                        class="button l" /></td>
            </tr>
        </table>
        <table class="tabs">
            <tr>
                <td class="tab-inactivo">
                    <anthem:LinkButton ID="lnkAcciones" runat="server" CausesValidation="False" EnableCallBack="False"
                        OnClientClick="return confirmEdit();" OnClick="lnkAcciones_Click" Font-Bold="False"
                        Font-Italic="False" Font-Strikeout="False">Plan de Accion</anthem:LinkButton></td>
            </tr>
        </table>
        <div class="overflow">
            &nbsp;<dxwgv:ASPxGridView ID="ASPxGridViewDemo" runat="server" AutoGenerateColumns="False"
                CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue"
                KeyFieldName="PLN_ID" OnHtmlRowPrepared="ASPxGridViewDemo_HtmlRowPrepared" OnRowCommand="ASPxGridViewDemo_RowCommand"
                Width="100%" Theme="PlasticBlue">
                <SettingsCustomizationWindow Enabled="True" PopupHorizontalAlign="LeftSides" PopupVerticalAlign="TopSides" />
                <SettingsBehavior ColumnResizeMode="Control" />
                <Styles CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue">
                    <Header ImageSpacing="10px" SortingImageSpacing="10px">
                    </Header>
                    <SelectedRow BackColor="Maroon">
                    </SelectedRow>
                    <FocusedRow BackColor="White">
                    </FocusedRow>
                    <CustomizationWindow BackColor="#FFFFC0">
                    </CustomizationWindow>
                </Styles>
                <SettingsPager ShowDefaultImages="False">
                    <AllButton Text="Todos" Visible="True">
                    </AllButton>
                    <NextPageButton Text="Siguiente &gt;">
                    </NextPageButton>
                    <PrevPageButton Text="&lt; Anterior">
                    </PrevPageButton>
                </SettingsPager>
                <GroupSummary>
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="PLN_VALOR_APROPIACION" ShowInGroupFooterColumn="Valor Apropiaci&#243;n"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_PROGRAMADO" ShowInGroupFooterColumn="TOTAL_PROGRAMADO"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_DISPONIBILIDAD_ACUMULADA"
                        ShowInGroupFooterColumn="TOTAL_DISPONIBILIDAD_ACUMULADA" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_APROPIACION_SIN_CDP"
                        ShowInGroupFooterColumn="TOTAL_APROPIACION_SIN_CDP" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_COMPROMETIDO" ShowInGroupFooterColumn="TOTAL_COMPROMETIDO"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_POR_EJECUTAR" ShowInGroupFooterColumn="TOTAL_POR_EJECUTAR"
                        SummaryType="Sum" />
                </GroupSummary>
                <TotalSummary>
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="PLN_VALOR_APROPIACION" ShowInGroupFooterColumn="Valor Apropiaci&#243;n"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_PROGRAMADO" ShowInGroupFooterColumn="TOTAL_PROGRAMADO"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_DISPONIBILIDAD_ACUMULADA"
                        ShowInGroupFooterColumn="TOTAL_DISPONIBILIDAD_ACUMULADA" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_APROPIACION_SIN_CDP"
                        ShowInGroupFooterColumn="TOTAL_APROPIACION_SIN_CDP" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_COMPROMETIDO" ShowInGroupFooterColumn="TOTAL_COMPROMETIDO"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_OBLIGACION" ShowInGroupFooterColumn="TOTAL_OBLIGACION"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="TOTAL_POR_EJECUTAR" ShowInGroupFooterColumn="TOTAL_POR_EJECUTAR"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_ADICIONES"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_ADICIONES" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_MODIFICACION" ShowInGroupFooterColumn="VALOR_MODIFICACION"
                        SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_INICIAL"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_INICIAL" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_REDUCCION"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_REDUCCION" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_DESAPLAZAMIENTO"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_DESAPLAZAMIENTO" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_APLAZAMIENTO"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_APLAZAMIENTO" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_RECORTE"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_RECORTE" SummaryType="Sum" />
                    <dxwgv:ASPxSummaryItem DisplayFormat="{0:N2}" FieldName="VALOR_APROPIACION_FINAL"
                        ShowInGroupFooterColumn="VALOR_APROPIACION_FINAL" SummaryType="Sum" />
                </TotalSummary>
                
                <SettingsCookies Enabled="True" />
                <SettingsText GroupPanel="Arrastre el encabezado de la columna  aqui para agrupar por columna"
                    Title="Ejecuci&#243;n Presupuestal" />
                <ClientSideEvents EndCallback="function(s, e) {actualizarTotales();}" />
                <Columns>
                    <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Width="20px">
                        <ClearFilterButton Visible="True">
                        </ClearFilterButton>
                        <CellStyle Wrap="True">
                        </CellStyle>
                    </dxwgv:GridViewCommandColumn>
                    <dxwgv:GridViewDataHyperLinkColumn Caption="Ver" Visible="False" VisibleIndex="1">
                        <DataItemTemplate>
                            <asp:LinkButton ID="link" runat="server">Ver</asp:LinkButton>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataHyperLinkColumn>
                    <dxwgv:GridViewDataTextColumn Caption="ID" FieldName="PLN_ID" Visible="False" VisibleIndex="1">
                        <HeaderTemplate>
                        </HeaderTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Semaforo" VisibleIndex="1" Width="50px">
                        <DataItemTemplate>
                            <anthem:Image ID="Image1" runat="server" ImageUrl="Imagenes/Botverde.gif" Visible='<%# Convert.ToDecimal(Eval("PORCENTAJE_EJECUCION_REAL")) > Convert.ToDecimal(Eval("SSE_VALOR_MAX")) ? true:  false %>' />
                            <anthem:Image ID="Image2" runat="server" ImageUrl="Imagenes/Botrojo.gif" Visible='<%# Convert.ToDecimal(Eval("PORCENTAJE_EJECUCION_REAL")) <= Convert.ToDecimal(Eval("SSE_VALOR_MED")) ? true:  false %>' />
                            <anthem:Image ID="Image3" runat="server" ImageUrl="Imagenes/Botamarillo.gif" Visible='<%# Convert.ToDecimal(Eval("PORCENTAJE_EJECUCION_REAL")) > Convert.ToDecimal(Eval("SSE_VALOR_MED")) && Convert.ToDecimal(Eval("PORCENTAJE_EJECUCION_REAL")) < Convert.ToDecimal(Eval("SSE_VALOR_MAX")) ? true:  false %>' />
                        </DataItemTemplate>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Proyecto de inversi&#243;n" FieldName="PLN_NOMBRE"
                        VisibleIndex="2" Width="700px">
                        <HeaderStyle Wrap="True" />
                        <CellStyle Wrap="True">
                        </CellStyle>
                        <FooterCellStyle Wrap="True">
                        </FooterCellStyle>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Dependencia" FieldName="DEP_NOMBRE" VisibleIndex="3"
                        Width="200px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataHyperLinkColumn Caption="Reportes" VisibleIndex="6" Width="100px">
                    <DataItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <anthem:LinkButton ID="LinkButton3"  runat="server"
                                            Visible='true' CommandName="cmdReportePlanAccionCompleto" EnableCallBack="False" EnabledDuringCallBack="False">
                                            Plan Accion Completo
                                            </anthem:LinkButton><br />
                                            <anthem:LinkButton ID="LinkButton1"  runat="server"
                                            Visible='true' CommandName="cmdReportePlanAccionSabana" EnableCallBack="False" EnabledDuringCallBack="False">
                                            Plan Acción Misionales
                                            </anthem:LinkButton><br />
                                        <anthem:LinkButton ID="lnkEjecucion"  runat="server"
                                            Visible='true' CommandName="cmdReporteTiquetes" EnableCallBack="False" EnabledDuringCallBack="False">
                                            Tiquetes, viáticos y logística
                                            </anthem:LinkButton><br />
                                             
                                            <anthem:LinkButton ID="LinkButton2"  runat="server"
                                            Visible='true' CommandName="cmdReportePersonas" EnableCallBack="False" EnabledDuringCallBack="False">
                                            Personas
                                            </anthem:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            
                        </DataItemTemplate>
                        <CellStyle Wrap="True">
                        </CellStyle>
                    </dxwgv:GridViewDataHyperLinkColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Valor Apropiaci&#243;n Inicial" FieldName="VALOR_APROPIACION_INICIAL"
                        VisibleIndex="5" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Adiciones" FieldName="VALOR_APROPIACION_ADICIONES"
                        VisibleIndex="4" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Reducciones" FieldName="VALOR_APROPIACION_REDUCCION"
                        VisibleIndex="7" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Desplazamiento" FieldName="VALOR_APROPIACION_DESAPLAZAMIENTO"
                        VisibleIndex="8" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Aplazamiento" FieldName="VALOR_APROPIACION_APLAZAMIENTO"
                        VisibleIndex="9" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Recortes" FieldName="VALOR_APROPIACION_RECORTE"
                        VisibleIndex="10" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Apropiaci&#243;n Final" FieldName="VALOR_APROPIACION_FINAL"
                        VisibleIndex="11" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Clasificaci&#243;n del gasto" FieldName="CLS_NOMBRE"
                        VisibleIndex="12" Width="110px">
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="C&#243;digo presupuestal" FieldName="PLN_CODIGO_PRESUPUESTAL"
                        VisibleIndex="13" Width="100px">
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Total Programado" FieldName="TOTAL_PROGRAMADO"
                        VisibleIndex="14" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Descripci&#243;n" FieldName="PLN_DESCRIPCION"
                        VisibleIndex="15" Width="100px">
                        <CellStyle Wrap="True">
                        </CellStyle>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Apropiaci&#243;n con CDP" FieldName="TOTAL_DISPONIBILIDAD_ACUMULADA"
                        VisibleIndex="16" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Apropiaci&#243;n sin CDP" FieldName="TOTAL_APROPIACION_SIN_CDP"
                        VisibleIndex="17" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Comprometido" FieldName="TOTAL_COMPROMETIDO"
                        VisibleIndex="18" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Obligaciones" FieldName="TOTAL_OBLIGACION"
                        VisibleIndex="21" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="% Obligaci&#243;n" FieldName="PORCENTAJE_OBLIGACION"
                        VisibleIndex="22" Width="100px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Por Ejecutar" FieldName="TOTAL_POR_EJECUTAR"
                        VisibleIndex="19" Width="120px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="% Ejecuci&#243;n Real" FieldName="PORCENTAJE_EJECUCION_REAL"
                        VisibleIndex="20" Width="100px">
                        <PropertiesTextEdit DisplayFormatString="{0:N2}">
                        </PropertiesTextEdit>
                        <HeaderStyle Wrap="True" />
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowFilterRow="True" ShowFooter="True" ShowGroupFooter="VisibleIfExpanded"
                    ShowGroupPanel="True" ShowTitlePanel="True" ShowFilterBar="Visible" 
                    ShowFilterRowMenu="True" />
            </dxwgv:ASPxGridView>
        </div>
        <dxwgv:ASPxGridViewExporter ID="gridExport" runat="server" GridViewID="ASPxGridViewDemo">
        </dxwgv:ASPxGridViewExporter>
    </anthem:Panel>
    <asp:Button ID="btnPdfExport" runat="server" Text="Exportar a PDF" OnClick="btnPdfExport_Click"
        Visible="False" CssClass="button m" />
    <asp:Button ID="btnXlsExport" runat="server" Text="Exportar a XLS" OnClick="btnXlsExport_Click"
        CssClass="button m" />
    <asp:Button ID="btnRtfExport" runat="server" Text="Exportar a RTF" OnClick="btnRtfExport_Click"
        CssClass="button m" />
    <asp:Button ID="btnCsvExport" runat="server" Text="Exportar a CSV" OnClick="btnCsvExport_Click"
        CssClass="button m" />
    <anthem:Panel ID="pnlTotales" runat="server" AutoUpdateAfterCallBack="true" Visible="false"
        Width="100%">
        <table width="100%">
            <tr>
                <td style="width: 20%">
                    <table class="content-box1" width="100%">
                        <tr>
                            <td>
                                Total Apropiacion Presupuestal</td>
                            <td>
                                <anthem:TextBox ID="txtTotalApropiacion" runat="server" AutoUpdateAfterCallBack="True"
                                    Text="<%=StrValorTotalApropiacion %>"></anthem:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                Total Actividades Programadas
                            </td>
                            <td>
                                <anthem:TextBox ID="txtActividadesProgramadas" runat="server" AutoUpdateAfterCallBack="True"
                                    Text="<%=StrValorActividadesProgramadas %>"></anthem:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                Saldo Apropiacion</td>
                            <td>
                                0</td>
                        </tr>
                        <tr>
                            <td>
                                Total programado</td>
                            <td>
                                0</td>
                        </tr>
                        <tr>
                            <td>
                                Total programado otros recursos</td>
                            <td>
                                0</td>
                        </tr>
                    </table>
                </td>
                <td style="width: 20%">
                    <table class="content-box1">
                        <tr>
                            <td>
                                Total Compromisos</td>
                            <td>
                                0,00</td>
                        </tr>
                        <tr>
                            <td>
                                Total Recursos Programados del proyecto</td>
                            <td>
                                0,00</td>
                        </tr>
                    </table>
                </td>
                <td style="width: 20%">
                    <table class="content-box1">
                        <tr>
                            <td>
                                Total CDP</td>
                            <td>
                                0,00</td>
                        </tr>
                    </table>
                </td>
                <td style="width: 20%">
                    <table class="content-box1">
                        <tr>
                            <td>
                                Saldo apropiacion sin CDP</td>
                            <td>
                                &nbsp;0,00
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 20%">
                    <table class="content-box1">
                        <tr>
                            <td>
                                Saldo COP sin comprometer</td>
                            <td>
                                0,00</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table class="content-box1">
            <tr>
                <td align="left" style="width: 20%">
                    Funcionamiento</td>
                <td align="left">
                    <asp:TextBox ID="txtFuncionamiento" runat="server" ReadOnly="True">
                    </asp:TextBox></td>
            </tr>
            <tr>
                <td align="left" style="width: 20%;">
                    Inversion</td>
                <td align="left">
                    <asp:TextBox ID="txtInversion" runat="server" ReadOnly="True">
                    </asp:TextBox></td>
            </tr>
        </table>
    </anthem:Panel>
</asp:Content>
